package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.AlertUserAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.AlertUserAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.AlertUserUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.AlertUserAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.AlertUserPageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/alertUser")
public interface IAlertUserServiceRemote {

    @GetMapping(value = "list")
    ResponseData<AlertUserPageAResp> list(String likeUsername, String likeComment, Integer page, Integer size);

    @PostMapping(value = "detail")
    ResponseData<AlertUserAResp> detail(RequestData<AlertUserAReq> requestData);

    @PostMapping(value = "update")
    ResponseData update(RequestData<AlertUserUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<AlertUserAResp> add(RequestData<AlertUserAddAReq> requestData);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(Integer id);
}
